package com.hyts.rpclet.bean;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * project-name:coffice-toolbox
 * package-name:com.hyts.rpclet.bean
 * author:Libo/Alex
 * create-date:2019-07-09 22:08
 * copyright:libo-hyts-github
 * email:libo2dev@aliyun.com
 * description:此类主要用于:
 */
@Data
@Component
//@PropertySource(value="classpath:application.yml",encoding = "UTF-8")
public class RpcletProperties {

    /**
     * 线程带下操作
     */
    @Value("${rpclet.server.minThreads:8}")
    private int minThreadsNum;

    @Value("${rpclet.server.maxThreads:200}")
    private int maxThreadsNum;

    @Value("${rpclet.server.idleTimeout:10000}")
    private int idleTimeout;

    @Value("${rpclet.server.port:8080}")
    private int port;

    @Value("${rpclet.server.contextPath:/}")
    private String contextPath;

}
